<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>宝贝盒子 - 消息</title>
  <style>
    body {
      font-family: 'HarmonyOS Sans', '微软雅黑', Arial, sans-serif;
      background: linear-gradient(135deg, #e0e7ff 0%, #d1d5ff 100%);
      margin: 0;
      padding: 0;
      color: #1e293b;
      min-height: 100vh;
    }
    .header {
      width: 100%;
      background: linear-gradient(90deg, #4f46e5 0%, #8b5cf6 100%);
      padding: 22px 0 12px 0;
      text-align: center;
      color: #fff;
      font-size: 2rem;
      font-weight: bold;
      letter-spacing: 2px;
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.10);
      position: sticky;
      top: 0;
      z-index: 10;
    }
    .msg-list {
      margin: 0;
      padding: 0;
      list-style: none;
      max-width: 600px;
      margin: 0 auto;
    }
    .msg-item {
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 2px 10px #a5b4fc11;
      margin: 18px 16px 0 16px;
      padding: 16px 14px 16px 14px;
      transition: background 0.2s;
      cursor: pointer;
      position: relative;
    }
    .msg-item:hover {
      background: #f0f9ff;
    }
    .msg-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      color: #fff;
      margin-right: 16px;
      position: relative;
    }
    .msg-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
    }
    .msg-title-row {
      display: flex;
      align-items: center;
      margin-bottom: 4px;
    }
    .msg-title {
      font-size: 1.08rem;
      font-weight: 600;
      color: #334155;
      margin-right: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 180px;
    }
    .msg-time {
      font-size: 0.92rem;
      color: #94a3b8;
      margin-left: auto;
      white-space: nowrap;
    }
    .msg-desc {
      font-size: 0.98rem;
      color: #64748b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 260px;
    }
    .msg-unread {
      width: 10px;
      height: 10px;
      background: #ef4444;
      border-radius: 50%;
      position: absolute;
      top: 14px;
      left: 38px;
      box-shadow: 0 0 6px #ef4444aa;
      border: 2px solid #fff;
      display: block;
    }
    @media (max-width: 600px) {
      .header { font-size: 1.2rem; padding: 14px 0 8px 0; }
      .msg-item { margin: 12px 4px 0 4px; padding: 10px 6px 10px 6px; border-radius: 10px; }
      .msg-icon { width: 36px; height: 36px; font-size: 1.2rem; margin-right: 8px; border-radius: 8px; }
      .msg-title { font-size: 0.98rem; max-width: 90px; }
      .msg-desc { font-size: 0.92rem; max-width: 120px; }
      .msg-time { font-size: 0.85rem; }
      .msg-unread { width: 8px; height: 8px; top: 8px; left: 26px; }
    }
  </style>
</head>
<body>
  <div class="header">消息</div>
  <ul class="msg-list">
    <li class="msg-item">
      <div class="msg-icon">🔔</div>
      <div class="msg-content">
        <div class="msg-title-row">
          <div class="msg-title">系统通知</div>
          <div class="msg-time">09:30</div>
        </div>
        <div class="msg-desc">欢迎使用宝贝盒子App，祝你玩得开心！</div>
      </div>
      <span class="msg-unread"></span>
    </li>
    <li class="msg-item">
      <div class="msg-icon">💬</div>
      <div class="msg-content">
        <div class="msg-title-row">
          <div class="msg-title">互动消息</div>
          <div class="msg-time">昨天</div>
        </div>
        <div class="msg-desc">小明评论了你的动态："好有趣！"</div>
      </div>
      <span class="msg-unread"></span>
    </li>
    <li class="msg-item">
      <div class="msg-icon">🎉</div>
      <div class="msg-content">
        <div class="msg-title-row">
          <div class="msg-title">活动推送</div>
          <div class="msg-time">前天</div>
        </div>
        <div class="msg-desc">限时活动开启，快来参与赢取奖励！</div>
      </div>
    </li>
  </ul>
</body>
</html> 